import requests from "./base";

//获取产品信息
export const getProductList = (params?:unknown)=> requests.post("/pro/listPro",params)

//产品类型
export const getProTypeList = (params?:unknown)=> requests.post("/pro/listType",params)


//添加产品  /pro/addPro
export const addProduct = (params?:unknown)=> requests.post("/pro/addPro",params)

//文件上传 /pro/upload
export const uploadFile = (params?:unknown)=> requests.post("/pro/upload",params)


//产品编辑
export const editProd = (params?:unknown)=> requests.post("/pro/updatePro",params)

//删除产品
export const deletProd = (params?:unknown)=> requests.post("/pro/removePro",params)

//购买产品
export const buyProduct = (params?:unknown)=> requests.post("/pro/buyPro",params)

//删除产品分类
export const deleteType = (params?:unknown)=> requests.post("/pro/removeType",params)